//
//  CategoryModel.h
//  SmartiOSPublisher
//
//  Created by Liu,Qingcan on 2017/4/25.
//  Copyright © 2017年 Baidu. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "PersistenceCommon.h"
#import "Categories+CoreDataClass.h"
#import "LECategoryItem.h"


@interface CategoryModel : NSObject
@property (nonatomic,weak)PersistenceCommon *persistence;

//前两个接口返回的是LECategoryItem实体
- (void)insertCategoryData:(LECategoryItem *)item;
- (NSArray *)selectAllData;


- (void)deleteCategory:(Categories *)item;
- (void)updateCategory:(Categories *)item;
- (void)deleteAllCategory;
@end
